﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using loveyou.Core;

namespace loveyou.Controllers
{
    public class BaseController : Controller
    {
        public string UserName { get; set; }
        public BaseController()
        {
            
        }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            UserName = GlobalConfig.CurrentUserName;

            base.OnActionExecuting(filterContext);
        }
    }
}
